-- GENERATED SPELL FOR [Scarlet Executioner] --


function spell0_1841(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1841', 664, 1)
end

function spell1_1841(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_1841', 567, 1)
end

function spell2_1841(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1841', 5330, 1)
end

function Sorts_1841(pUnit, Event)
local choix_sorts_1841 = math.random(0, 2)
if choix_sorts_1841 == 0 then
pUnit:RegisterEvent('spell0_1841', 1, 1)
end
if choix_sorts_1841 == 1 then
pUnit:RegisterEvent('spell1_1841', 1, 1)
end
if choix_sorts_1841 == 2 then
pUnit:RegisterEvent('spell2_1841', 1, 1)
end
end

function mob1841_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1841', math.random(1500, 3000), 1)
end

function mob1841_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1841_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1841_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1841, 1, 'mob1841_Action')
RegisterUnitEvent(1841, 2, 'mob1841_Leave')
RegisterUnitEvent(1841, 3, 'mob1841_Kill')
RegisterUnitEvent(1841, 4, 'mob1841_Die')
